import Layout from '@/layout/Index.vue'

const router = [
    {
      path: '/member',
      component: Layout,
      redirect: '/member/index',
      children: [
        {
          // 会员首页
          path: 'index',
          component: () => import('@/views/Member/Index.vue'),
          name: 'MemberIndex'
        },
        {
          // 会员充值记录
          path: 'rechargeRecord',
          component: () => import('@/views/Member/RechargeRecord.vue'),
          name: 'RechargeRecord'
        },
        {
          // 会员退卡记录
          path: 'cardRefundRecord',
          component: () => import('@/views/Member/CardRefundRecord.vue'),
          name: 'CardRefundRecord'
        }
      ],
    }
  ]

export default router